package design_pattern.publish_subscribe;

public class Publisher<M> {

    private String name;

    public Publisher(String name) {
        this.name = name;
    }

    public void publish(Broker<M> broker, M msg, boolean isInstant) {
        broker.publish(this.name, msg, isInstant);
    }

}
